#for...in... 99乘法表

split="="
count=25

#第一种输出
print(split*count, "第一种开始", split*count)

for i in range(1, 10):
	for j in range(1, i+1):
		print("{}*{}={:<2}".format(j, i, i*j), end=" ")
	print()

print(split*count, "第一种结束", split*count, "\n")

#第二种输出
print(split*count, "第二种开始", split*count)

for i in range(9, 0, -1):
	for j in range(1, i+1):
		print("{}*{}={:<2}".format(j, i, i*j), end=" ")
	print()

print(split*count, "第二种结束", split*count, "\n")

#第三种输出
print(split*count, "第三种开始", split*count)

for i in range(1, 10):
	for k in range(1, 10-i):
		print(" "*7, end="")
	for j in range(i, 0, -1):
		print("{}*{}={:<2}".format(j, i, i*j), end=" ")
	print()

print(split*count, "第三种结束", split*count, "\n")

#第四种输出
print(split*count, "第四种开始", split*count)

for i in range(9, 0, -1):
	for k in range(1, 10-i):
		print(" "*7, end="")
	for j in range(i, 0, -1):
		print("{}*{}={:<2}".format(j, i, i*j), end=" ")
	print()

print(split*count, "第四种结束", split*count, "\n")
